import Vue from 'vue'
import Router from 'vue-router'
import index from './views/index.vue'
import index2 from './views/index2.vue'
import login from './views/login.vue'
import login2 from './views/login2.vue'
import register from './views/register.vue'
import register2 from './views/register2.vue'
import allposition from './views/allposition.vue'
import usermanage from './views/usermanage.vue'
import createresume from './views/usermanage/createresume.vue'
import myresume from './views/usermanage/myresume.vue'
import favorites from './views/usermanage/favorites.vue'
import feedback from './views/usermanage/feedback.vue'
import information from './views/usermanage/information'
import compmanage from './views/compmanage'

import jobpost from './views/compmanage/downresume'
import downresume from './views/compmanage/downresume'
import favoresume from './views/compmanage/favoresume'
import getresume from './views/compmanage/getresume'
import information2 from './views/compmanage/information'
import jobmanage from './views/compmanage/jobmanage'
import viewinvite from './views/compmanage/viewinvite'




Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'index',
            component: index
        }, {
            path: '/index2',
            name: 'index2',
            component: index2
        },
        {
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/login2',
            name: 'login2',
            component: login2
        },
        {
            path: '/register',
            name: 'register',
            component: register
        }, {
            path: '/register2',
            name: 'register2',
            component: register2
        }, {
            path: '/allposition',
            name: 'allposition',
            component: allposition
        }, {
            path: '/compmanage',
            name: 'compmanage',
            component: compmanage
        },
        {
            path: '/usermanage',
            name: 'usermanage',
            component: usermanage,
            children: [{
                path: '',
                name: 'createresume',
                component: createresume
            }, {
                path: 'myresume',
                name: 'myresume',
                component: myresume
            }, {
                path: 'favorites',
                name: 'favorites',
                component: favorites
            }, {
                path: 'feedback',
                name: 'feedback',
                component: feedback,
            },{
                path: 'information',
                name: 'information',
                component: information
            },
            ]
        }, {
            path: '/compmanage',
            name: 'compmanage',
            component: compmanage,
            children: [{
                path: '',
                name: 'jobpost',
                component: jobpost
            }, {
                path: 'jobmanage',
                name: 'jobmanage',
                component: jobmanage
            }, {
                path: 'viewinvite',
                name: 'viewinvite',
                component: viewinvite
            }, {
                path: 'getresume',
                name: 'getresume',
                component: getresume,
            },{
                path: 'downresume',
                name: 'downresume',
                component: downresume
            },{
                path: 'favoresume',
                name: 'favoresume',
                component: favoresume
            },{
                path: 'information',
                name: 'information',
                component: information2
            },
            ]
        },
    ]
})
